<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	 主要完成人情况
</div>
<table id="zh_persons" border="0" cellspacing="0" cellpadding="0"
	class="table01">
	<thead>
		<tr>
			<th nowrap>序号</th>
			<th width="11%">姓名</th>
			<th width="13%">电子邮件</th>
			<th width="12%">联系电话</th>
			<th width="17%">工作单位</th>
			<th width="11%">学位</th>
			<th width="12%">职务</th>
			<th width="12%">职称</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center" width="50px">
					<input type="radio" name="sel_zh_persons" onclick="setSubmitPsn3()"  style="display:none"/> 
					<c:if test="${index==0}">
						<input type="hidden" id="submit_psn"
							name="zh_persons/zh_person[${flag}${index}]@submit_psn" value="1" />
						<input type="hidden"
							name="zh_persons/zh_person[${flag}${index}]/basic_info/psn_code"
							value="<x:out select="$zh_person/basic_info/psn_code" />" />
					</c:if>
					<span name="zh_persons/zh_person[${flag}${index}]@seq_no">${index+1}</span>
				</td>
				<td align="center">
					<security:authorize ifNotGranted="A_AUTH_PSZJ">
						<span class="required " label="姓名" name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"> 
							<a href="#" class="yase" onclick="psnInfoView(this,'zh_persons')"><x:out select="$zh_person/basic_info/zh_name" /></a>
						</span>
					</security:authorize>
					<security:authorize ifAnyGranted="A_AUTH_PSZJ">
					******
					</security:authorize>
					<input type="hidden" class="required" label="性别" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value"
						value="<x:out select="$zh_person/basic_info/gender_value" />" />
					<input type="hidden" class="" label="性别 name" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name"
						value="<x:out select="$zh_person/basic_info/gender_name" />" />
					<input type="hidden" class="required" label="民族" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name"
						value="<x:out select="$zh_person/basic_info/ethnicity_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value"
						value="<x:out select="$zh_person/basic_info/ethnicity_value" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/overseas_name"
						value="<x:out select="$zh_person/basic_info/overseas_name" />" />
					<input type="hidden" class="required" label="身份证号码" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code"
						value="<x:out select="$zh_person/basic_info/card_code" />" /></td>
				<td align="center">
					<security:authorize ifNotGranted="A_AUTH_PSZJ">
						<span class="required " label="电子邮箱" name="zh_persons/zh_person[${flag}${index}]/contact/email">
							<x:out select="$zh_person/contact/email" />
						</span>
					</security:authorize>
					<security:authorize ifAnyGranted="A_AUTH_PSZJ">
					******
					</security:authorize>
				</td>
				<td align="center">
					<security:authorize ifNotGranted="A_AUTH_PSZJ">
						<span class="required " label="联系电话" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work">
							<x:out select="$zh_person/contact/tel_work" />
						</span>
					</security:authorize>
					<security:authorize ifAnyGranted="A_AUTH_PSZJ">
					******
					</security:authorize>
				</td>
				<td align="center">
					<security:authorize ifNotGranted="A_AUTH_PSZJ">
						<span class="required " label="工作单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name">
							<x:out select="$zh_person/basic_info/org_name" />
							<input type="hidden" class="" label="工作单位 code" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code"
							value="<x:out select="$zh_person/basic_info/org_code" />" />
						</span>
					</security:authorize>
					<security:authorize ifAnyGranted="A_AUTH_PSZJ">
					******
					</security:authorize>
					<input type="hidden" class="required" label="出生日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"
						value="<x:out select="$zh_person/basic_info/birthday" />" />
					<input type="hidden" class="required" label="住宅电话" name="zh_persons/zh_person[${flag}${index}]/contact/mobile"
						value="<x:out select="$zh_person/contact/mobile" />" />
					<input type="hidden" class="required" label="通讯地址" name="zh_persons/zh_person[${flag}${index}]/basic_info/address"
						value="<x:out select="$zh_person/basic_info/address" />" />
					<input type="hidden" class="required" label="出生地" name="zh_persons/zh_person[${flag}${index}]/basic_info/birth_area"
						value="<x:out select="$zh_person/basic_info/birth_area" />" />
					<input type="hidden" class="required" label="邮政编码" name="zh_persons/zh_person[${flag}${index}]/contact/post_code"
						value="<x:out select="$zh_person/contact/post_code" />" />
					<input type="hidden" class="required" label="文化程度" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"
						value="<x:out select="$zh_person/basic_info/educate_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value"
						value="<x:out select="$zh_person/basic_info/educate_value" />" />
					<%-- <input type="hidden" class="required" label="是否是院士" name="zh_persons/zh_person[${flag}${index}]/basic_info/isyuansi_name"
						value="<x:out select="$zh_person/basic_info/isyuansi_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/isyuansi_value"
						value="<x:out select="$zh_person/basic_info/isyuansi_value" />" /> --%>
					<input type="hidden" class="required" label="党派" name="zh_persons/zh_person[${flag}${index}]/basic_info/party_name"
						value="<x:out select="$zh_person/basic_info/party_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/party_value"
						value="<x:out select="$zh_person/basic_info/party_value" />" />
				</td>
				<td align="center">
					<span class="required " label="学位" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name">
						<x:out select="$zh_person/basic_info/degree_name" /></span>
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value"
						value="<x:out select="$zh_person/basic_info/degree_value" />" /></td>
				<td align="center">
					<span class="required " label="职务" name="zh_persons/zh_person[${flag}${index}]/basic_info/position_2">
						<x:out select="$zh_person/basic_info/position_2" />
					</span>
				</td>
				<td align="center">
					<span class="required " label="职称" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name">
						<x:out select="$zh_person/basic_info/prof_title_name" />
					</span>
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value"
						value="<x:out select="$zh_person/basic_info/prof_title_value" />" />
					<input type="hidden" class="required" label="专业" name="zh_persons/zh_person[${flag}${index}]/contact/major"
						value="<x:out select="$zh_person/contact/major" />" />
					<input type="hidden" label="毕业学校" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduate_college"
						value="<x:out select="$zh_person/basic_info/graduate_college" />" />
					<input type="hidden" class="required" label="毕业时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduation_date"
						value="<x:out select="$zh_person/basic_info/graduation_date" />" />
					<input type="hidden" class="" label="毕业时间 time" name="zh_persons/zh_person[${flag}${index}]/basic_info/graduation_time"
						value="<x:out select="$zh_person/basic_info/graduation_time" />" />
					<input type="hidden" class="required" label="参加本项目开始时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/prj_startdate"
						value="<x:out select="$zh_person/basic_info/prj_startdate" />" />
					<input type="hidden" class="required" label="参加本项目结束时间" name="zh_persons/zh_person[${flag}${index}]/basic_info/prj_enddate"
						value="<x:out select="$zh_person/basic_info/prj_enddate" />" />
					<input type="hidden" class="required" label="家庭地址" name="zh_persons/zh_person[${flag}${index}]/basic_info/home_address"
						value="<x:out select="$zh_person/basic_info/home_address" />" />
					<input type="hidden" class="required" label="人才计划或称号" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_honour"
						value="<x:out select="$zh_person/basic_info/wcr_honour" />" />
					<input type="hidden" class="" label="人才计划或称号" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_honour_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_honour_hidden" />" />
					<input type="hidden" class="required" label="创造性贡献" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_creativity_contribute"
						value="<x:out select="$zh_person/basic_info/wcr_creativity_contribute" />" />
					<input type="hidden" class="" label="创造性贡献2" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_creativity_contribute_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_creativity_contribute_hidden" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age"
						value="<x:out select="$zh_person/basic_info/age" />" />
						
						
						
						
					<input type="hidden" class="required" label="归国人员" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_name"
						value="<x:out select="$zh_person/basic_info/homecoming_name" />" />
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_value"
						value="<x:out select="$zh_person/basic_info/homecoming_value" />" />
						  
					<input type="hidden" class="required" label="归国日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_date"
						value="<x:out select="$zh_person/basic_info/homecoming_date" />" />
					<input type="hidden" class="" label="归国日期" name="zh_persons/zh_person[${flag}${index}]/basic_info/homecoming_time"
						value="<x:out select="$zh_person/basic_info/homecoming_time" />" />
					  
					<input type="hidden" class="required" label="二级单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/second_unit"
						value="<x:out select="$zh_person/basic_info/second_unit" />" />	
						
					<input type="hidden" class="required" label="完成单位" name="zh_persons/zh_person[${flag}${index}]/basic_info/finish_unit"
						value="<x:out select="$zh_person/basic_info/finish_unit" />" />
						
					<input type="hidden" class="" label="曾获科技奖励情况" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_award_condition"
						value="<x:out select="$zh_person/basic_info/wcr_award_condition" />" />
					<input type="hidden" class="" label="曾获科技奖励情况" name="zh_persons/zh_person[${flag}${index}]/basic_info/wcr_award_condition_hidden"
						value="<x:out select="$zh_person/basic_info/wcr_award_condition_hidden" />" />	
						
						
						
						
						
						
						
						
					<input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml" />
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br />







<div id="text" style="display: none">

<div class="t_bar">完成人合作关系情况</div>

<table  id="cooperation_condition" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout: fixed;" >
	<col width="5%" />
	<col width="12%" />
	<col width="12%" />
	<col width="13%" />
	<col width="13%" />
	<col width="20%" />
	<col width="25%" />
	<thead >
			<tr style="border:1px solid #B7D1E6">
				<th class="TblHead" align="center" >序号</th>
				<th class="TblHead" align="center" >合作方式</th> 
				<th class="TblHead" align="center" >合作者/项目排名</th> 
		    <th class="TblHead" align="center" >合作起始时间</th> 
				<th class="TblHead" align="center" >合作完成时间</th> 
				<th class="TblHead" align="center" >合作成果</th> 
				<th class="TblHead" align="center" >证明材料</th> 
			</tr>
	
	</thead>
	<tbody id="tab">
	<c:set value="0" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/cooperation_condition/list" var="list">
	
	<c:choose>
		<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
		<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
	</c:choose>
	<tr align="center">
	
		<td align="center">
			 <x:out select="$list/@seq_no"/>
		</td>
		<td align="center">
			<x:out select="$list/cooperation_type"/>
		</td>
		<td align="center">
		  <x:out select="$list/cooperator"/>
		</td>
		
		<td align="center">
			<x:out select="$list/start_date"/>
		</td>
		<td align="center">
			<x:out select="$list/end_date"/>
		</td> 
		
		<td align="center">
			<x:out select="$list/cooperation_achievement"/>
		</td>
		<td align="center">
			<x:out select="$list/prove_material"/>
		</td>	
	
	</tr>
	<c:set value="${index+1}" var="index" scope="page"/>
	</x:forEach>
	<script type="text/javascript">
		showAllDateTag("cooperation_condition");
	</script>
</tbody>
</table>




<div class="t_bar">完成人合作关系说明</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="person_cooperation_introduction" cellspacing="1" style="table-layout:fixed;">
	<col width="20%;"/>
	<col width="25%;"/>
	<col width="20%;"/>
	<col width="20%;"/>
	<col width="25%;"/>
	<tr class="li_2">
		<td  colspan="5" >
			<x:out select="$xmlData/data/proposal/cooperation_relationship_introduction_hidden" escapeXml="false"/>
		</td>
	</tr>
</table>



</div>






<script type="text/javascript">
$(document).ready(function(){
	var text= $("#zh_persons").find("tr:last").find("span[name$='@seq_no']").text();
	   text = parseInt(text);
	   if (text >= 2){
		   $("#text").show();
	   }else{
		   $("#text").hide();
		   }
})

</script>



<script type="text/javascript">
function psnInfoView(obj,tableId,titleName) {
	var url = ctx+"/proposal/2014/view/dialog/psnInfoView_kxjsjbj_dgzywcr2016?parentTab="+tableId+"&type=edit&TB_iframe=true&height=460&width=910";
	$(obj).parents("tr").find(":radio").attr("checked",true);	
	if(!$("#"+tableId+" :radio:checked").length>0){
		scmWarn(irisNotes.pleaseSelectARow);
		return false;
	}
	
	if(url!=null&&url!=""){
		// showThickBox(url,irisNotes.viewResearcherInformation);
		var title=irisNotes.viewResearcherInformation;
		if (titleName != undefined)
		{
			title = titleName;
		}
		tb_show(title,url,false);
	}
}

 
</script>



